package com.dxt;

import com.dxt.mqtt.ClientSearch;
import com.dxt.netty.RuiKongYdServer;
import org.eclipse.paho.client.mqttv3.MqttException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableSwagger2
@SpringBootApplication
public class FireServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(FireServerApplication.class, args);
        //启动和远mqtt服务，获取设备上报数据
        new ClientSearch().start();
        //启动睿控netty服务，获取设备上报数据
        new RuiKongYdServer().start(58081);

    }

}
